Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Bounding Spheres

A bounding sphere is a sphere that completely encloses an object. A bounding sphere is defined by the TQ3BoundingSphere data type.

typedef struct TQ3BoundingSphere {
    TQ3Point3D                          origin;
    float                               radius;
    TQ3Boolean                          isEmpty;
} TQ3BoundingSphere;
origin
The origin of the bounding sphere.
radius
The radius of the bounding sphere; all points making up the bounding sphere are this far away from the origin of the sphere.
isEmpty
A Boolean value that specifies whether the bounding sphere is empty ( kQ3True ) or not ( kQ3False ). If this field contains the value kQ3True , the other field of this structure are invalid.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |